//
//  DiscoverViewController.swift
//  新浪微博
//
//  Created by 徐绩 on 16/4/15.
//  Copyright © 2016年 ayumi. All rights reserved.
//

import UIKit

class DiscoverViewController: XJVisitorController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if userLogon == false {
            
            visitorView.setVisitorInfo("visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            
            return
            
        }


        //添加searchView到导航栏
        let searchView = XJSearchView.searchView()
        searchView.frame.size.width = UIScreen.mainScreen().bounds.size.width
        navigationItem.titleView = searchView
        
    }

}
